Add test for FetchContent of UMF on Linux and Windows - #1384
Conversation
afd45b5 to
cd0640d
Compare
cd0640d to
09fb801
Compare
09fb801 to
8bb3ebc
Compare
|
Rebased |
8bb3ebc to
9906125
Compare
|
Rebased |
9906125 to
4e4194a
Compare
4e4194a to
64a6257
Compare
64a6257 to
b28de77
Compare
b28de77 to
e2286df
Compare
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
in general LGTM
| ${{ matrix.umfd_lib == 'ON' && '--umfd-lib' || ''}} | ||
| ${{ matrix.static_hwloc == 'ON' && '--hwloc' || '' }} | ||
|
|
||
| - name: Set VCPKG_PATH with hwloc for the fetch_content example |
There was a problem hiding this comment.
we already have a step like this, I guess we could just do the same as in that step: add if: matrix.static_hwloc == 'OFF' to the fetch_content example's configure/build/execution steps
There was a problem hiding this comment.
The fetch_content example always requires hwloc
There was a problem hiding this comment.
yeah, I'm just saying, we could test that example only in cases where the job already have VCPKG_PATH set
| # Copyright (C) 2025 Intel Corporation | ||
| # Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT. | ||
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
|
There was a problem hiding this comment.
you could add a short description why do we have this example
| target_include_directories(${EXAMPLE_NAME} PRIVATE ${LIBUMF_INCLUDE_DIRS}) | ||
| target_link_directories(${EXAMPLE_NAME} PRIVATE ${LIBHWLOC_LIBRARY_DIRS}) | ||
| target_link_libraries(${EXAMPLE_NAME} PRIVATE ${LIBUMF_LIBRARIES} hwloc) | ||
|
|
There was a problem hiding this comment.
could you please add printing of PATHs found in this example and used above..?
// e.g. like here: https://github.com/lukaszstolarczuk/unified-memory-framework/actions/runs/16051712582/job/45295762065#step:11:4353
There was a problem hiding this comment.
Which paths exactly do you mean?
There was a problem hiding this comment.
mostly which umf is used (so LIBUMF_INCLUDE_DIRS, but also btw we could print LIBHWLOC_LIBRARY_DIRS and LIBUMF_LIBRARIES) - see my example CI run (link above)
e2286df to
c666f12
Compare
Test FetchContent of UMF on Linux and Windows in Nightly CI job - on Windows with the 'Ninja' and 'NMake Makefiles' generators. Add the fetch_content example based on the basic example. Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
c666f12 to
1a033d4
Compare
| CACHE INTERNAL "UMF_LINK_HWLOC_STATICALLY=OFF") | ||
|
|
||
| FetchContent_MakeAvailable(unified-memory-framework) | ||
| FetchContent_GetProperties(unified-memory-framework) |
There was a problem hiding this comment.
I just verified this FetchContent_GetProperties call is redundant - MakeAvailable should be enough.
Description
Test FetchContent of UMF on Linux and Windows -
on Windows with the 'Ninja' and 'NMake Makefiles' generators.
Add the fetch_content example based on the basic example.
Nightly CI build: https://github.com/ldorau/unified-memory-framework/actions/runs/16030235338
Checklist